﻿using System;
using System.Data.Entity;

using Whoever.Framework.Utils;

using Whoever.Health.DataAccess.Core;
using Whoever.Health.Business.Entities;

namespace Whoever.Health.DataAccess.Initialization
{
    public class DropCreateSeedDatabaseIfModelChanges : DropCreateDatabaseIfModelChanges<DataContext>
    {
        protected override void Seed(DataContext context)
        {
            context.User.Add(new User { Account = "jonny", Password = Cryptography.Encrypt("123123123"), Email = "test@test.com", SignupDate = DateTime.Now });
        }
    }
}
